package com.java.action;

import java.util.ArrayList;
import java.util.List;

import com.java.pojo.ComDept;
import com.java.service.IEmpService;

public class EmpAddShowAction {

	private IEmpService empservice;
	private List<ComDept> dept;

	@SuppressWarnings("unchecked")
	public String execute() {

		dept = empservice.getDeptno();
		return "success";
	}

	public List<ComDept> getDept() {
		return dept;
	}

	public void setDept(List<ComDept> dept) {
		this.dept = dept;
	}

	public IEmpService getEmpservice() {
		return empservice;
	}

	public void setEmpservice(IEmpService empservice) {
		this.empservice = empservice;
	}

}
